#!/bin/csh -f

setenv INSTALL_FROM_DIR $HOTMIXDIR/html/vendors/adobe/software

if ( -x /usr/bin/photoshop  && -e /usr/adobe/Photoshop_3.0.1 ) then
        xwsh -bg royalblue -fg white \
                -geom 80x30+100+100 -cursorfg violetred1 \
                -cursorbg violetred1 -title "Launching Adobe Photoshop 3.0.1" \
                -e /bin/csh -c "cd $INSTALL_FROM_DIR; ./launchpho2.csh"

else
	xterm -bg royalblue -fg white \
		-geom 80x30+100+100 -cr violetred1  \
		-title "Installing Adobe Photoshop 3.0.1" \
		-e /bin/csh -c \
		"echo You must be root to install Photoshop...; \
		cd ${INSTALL_FROM_DIR}/photoshop_3.0.1;\
		su root -c './Installpho2.csh  CDDIR=${INSTALL_FROM_DIR}/photoshop_3.0.1 LICENSE_PROMPT=n DFTSECURITYDIR=/dev DFTSECURITYFILE=null AUTOSYMLINK=1';\
		sleep 10"
endif

